# settings.py

# 屏幕设置
WIDTH = 1024
HEIGHT = 768
FPS = 60
TITLE = "2D Top-Down Game"

# 颜色
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
RED = (255, 0, 0)
GREEN = (0, 255, 0)
BLUE = (0, 0, 255)
YELLOW = (255, 255, 0)
PURPLE = (128, 0, 128)
DARKGREY = (40, 40, 40)
LIGHTGREY = (100, 100, 100)

# 玩家属性
PLAYER_SIZE = 30
PLAYER_SPEED = 300  # 像素/秒
PLAYER_SLOW_SPEED = PLAYER_SPEED * 2 // 3  # 降低三分之一后的速度
PLAYER_HEALTH = 100
PLAYER_COLOR = YELLOW

# 子弹属性
BULLET_SIZE = 10
BULLET_SPEED = 500 # 像素/秒
BULLET_LIFETIME = 1500 # 毫秒
BULLET_COLOR = RED

# 障碍物颜色
OBSTACLE_COLOR = BLUE

# 野怪属性
MONSTER_SPEED = 100  # 原始野怪速度
MONSTER_SLOW_SPEED = MONSTER_SPEED // 3  # 降低三分之二后的速度

# 寻路系统设置
GRID_SIZE = 10  # 网格大小（像素）

# 地图文件
MAP_FILE = 'maps/default.json'  # 恢复为默认地图
MAPS_DIR = 'maps'

# 视野系统设置
FOG_OF_WAR = True
PLAYER_VISION_RADIUS = 300  # 玩家视野半径（像素）
PLAYER_VISION_ANGLE = 120  # 玩家视野角度（度）